package com.dannypatterson.as3p2p.events {
	
	import com.dannypatterson.as3p2p.ConnectionManager;
	
	import flash.events.Event;
	
	/**
	 * @author Danny Patterson
	 */
	public class IncomingConnectionEvent extends Event {
		
		static public const INCOMING_CONNECTION:String = "incomingConnection"; 
		
		public var peerId:String;
		
		public function IncomingConnectionEvent(type:String, peerId:String, bubbles:Boolean = false, cancelable:Boolean = false) {
			super(type, bubbles, cancelable);
			this.peerId = peerId;
		}
		
		override public function clone():Event {
			return new IncomingConnectionEvent(type, peerId, bubbles, cancelable);
		}

	}
	
}